package com.nbot.server.domain;

import java.util.Objects;

public class Point {
    private Long autoid;

    private String tag;

    private String searchdesc;

    private String dispdesc;

    private String zhanhao;

    private String weizhi;

    public Long getAutoid() {
        return autoid;
    }

    public void setAutoid(Long autoid) {
        this.autoid = autoid;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag == null ? null : tag.trim();
    }

    public String getSearchdesc() {
        return searchdesc;
    }

    public void setSearchdesc(String searchdesc) {
        this.searchdesc = searchdesc == null ? null : searchdesc.trim();
    }

    public String getDispdesc() {
        return dispdesc;
    }

    public void setDispdesc(String dispdesc) {
        this.dispdesc = dispdesc == null ? null : dispdesc.trim();
    }

    public String getZhanhao() {
        return zhanhao;
    }

    public void setZhanhao(String zhanhao) {
        this.zhanhao = zhanhao == null ? null : zhanhao.trim();
    }

    public String getWeizhi() {
        return weizhi;
    }

    public void setWeizhi(String weizhi) {
        this.weizhi = weizhi == null ? null : weizhi.trim();
    }

    @Override
    public String toString() {
        return "Point{" +
                "autoid=" + autoid +
                ", tag='" + tag + '\'' +
                ", searchdesc='" + searchdesc + '\'' +
                ", dispdesc='" + dispdesc + '\'' +
                ", zhanhao='" + zhanhao + '\'' +
                ", weizhi='" + weizhi + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Point point = (Point) o;
        return Objects.equals(autoid, point.autoid) &&
                Objects.equals(tag, point.tag) &&
                Objects.equals(searchdesc, point.searchdesc) &&
                Objects.equals(dispdesc, point.dispdesc) &&
                Objects.equals(zhanhao, point.zhanhao) &&
                Objects.equals(weizhi, point.weizhi);
    }

    @Override
    public int hashCode() {

        return Objects.hash(autoid, tag, searchdesc, dispdesc, zhanhao, weizhi);
    }
}